import { sendRequest } from '../request'


// 首页数据
export function getMainData() {
  const json = {
    url: '/api/terminal/machine/main/getMainData',
    method: 'get',
  }
  return sendRequest(json)
}

// 获取短信验证码
export function getSmsCheck(data) {
  const json = {
    url: '/api/terminal/machine/main/getSmsCheck',
    method: 'post',
    data: data
  }
  return sendRequest(json)
}

// 身份证号登陆
export function login(data) {
  const json = {
    url: '/api/terminal/machine/main/login',
    method: 'post',
    data: data,
  }
  return sendRequest(json)
}

// 退出
export function logOut(data) {
  const json = {
    url: '/api/terminal/machine/main/logout',
    method: 'post',
    data: data,
  }
  return sendRequest(json)
}




